<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <script src="./lib/vue-2.4.0.js"></script>
    <style>
        .parent{
            width:500px;
            height:500px;
            background: yellow;
        }
        .child{
            width:150px;
            height:150px;
            background: red;
        }
        .sub{
            width:300px;
            height:300px;
            background: green;
        }
    </style>
</head>
<body>
    <div class="app">
        <div class="parent" @click="parentClick">
            <div class="sub" @click="subClick">
                <div class="child" @click.stop="childClick">

                </div>
            </div>

        </div>
    </div>
    <a href="http://www.baidu.com" @click="cClick">点我</a>

</body>
<script>
    const vm=new Vue({
        el:".app",
        data:{


        },
        methods: {
            parentClick() {
                console.log("parent")
            },
            subClick() {
                console.log("sub")
            },
            childClick() {
                console.log("child")
            },
            cClick() {
                console.log("C")
            }

        }
    })
</script>
</html>
